# PyJuggler is (C) Copyright 2002-2012 by Patrick Hartling
# Distributed under the GNU Lesser General Public License 2.1.  (See
# accompanying file COPYING.txt or http://www.gnu.org/copyleft/lesser.txt)

include @topdir@/src/common.mk

DIRS=	vpr jccl snx gadget cluster vrj opengl

ifeq (@HAVE_OSG@, Y)
DIRS+=	osg
endif

ifeq (@HAVE_OPENSG@, Y)
DIRS+=	opensg
endif

all clean cleandepend clobber debug optim:
	@for d in $(DIRS) ; do			\
            echo "===> $$d" ;			\
            $(MAKE) -C $$d $@ || exit 1;	\
            echo "<=== $$d" ;			\
          done

install:
	$(MKINSTALLDIRS) $(PYTHON_PACKAGES)
	@for d in $(DIRS) ; do			\
            echo "===> $$d" ;			\
            $(MAKE) -C $$d $@ || exit 1;	\
            echo "<=== $$d" ;			\
          done
	cp $(top_srcdir)/dist/__init__.py $(PYTHON_PACKAGES)
	cp $(top_srcdir)/dist/vrj.py $(PYTHON_PACKAGES)/vrj/__init__.py
